#!/bin/bash

# this is an sample shell script
# you will need to develop this to 
# complete the assignment for week 7

echo "Test Case 1: Testing 23/23..."

tc=`java -jar Grades_v2.jar 23 23`

if [ "$tc" = "Component Fail" ]
  then
  echo "Test Passed"
fi

echo "Test Case 1: Testing 40/45..."

tc=`java -jar Grades_v2.jar 40 45`

if [ "$tc" = "Fail" ]
  then
  echo "Test Passed"
fi


echo "Test Case 1: Testing 60/70..."

tc=`java -jar Grades_v2.jar 60 70`

if [ "$tc" = "Pass" ]
  then
  echo "Test Passed"
fi


echo "Test Case 1: Testing 90/90..."

tc=`java -jar Grades_v2.jar 90 90`

if [ "$tc" = "Fail" ]
  then
  echo "Pass With Distinction"
fi



